package com.ruoyi.qywx.service.inters;

import com.ruoyi.common.core.basic.BasicService;
import com.ruoyi.common.core.cache.Meta;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.qywx.getway.entity.QyWelcome;
import com.ruoyi.qywx.model.vo.ContactWayInfo;
import com.ruoyi.qywx.model.vo.ContactWayVo;
import com.ruoyi.qywx.entity.ContactWayEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ContactWayService extends BasicService<ContactWayEntity> {
    AjaxResult addQrcode(ContactWayVo contactWayVo, Long userId, Meta meta);

    AjaxResult updateContactWay(ContactWayVo contactWayVo, Meta meta);

    List<ContactWayInfo> selectContactWayList(Long teamId, Long groupId, String keyword);

    AjaxResult delContactWayById(Long qrcodeId, Meta teamId);

    ContactWayVo selectContactWayById(Long id, Long teamId);

    AjaxResult download(HttpServletRequest request, Long id, Long teamId);
    /**
     * 发送欢迎语
     *
     * @param state  渠道码
     */
    QyWelcome findContactWayWelcome(String state, Meta meta);
}
